// 导入request模块
import request from './request'

// 患者查看自己的所有评估记录
export const getAssessments = (page = 1, size = 10) => {
	return request.get('/patient/assessments', {
		params: {
			page,
			size
		}
	})
}

// 患者查看某次评估的量表详情
export const getAssessmentDetails = (assessmentId) => {
	return request.get(`/patient/assessments/${assessmentId}/details`)
}

// 患者更新手机号
export const updatePhone = (phone) => {
	return request.post('/auth/update-phone', {
		phone
	})
}